{% extends 'base.html' %}

{% block title %} 发表博客 {% endblock %}

{% block mycss %}
    <style>
        .bodys {
            background-color: rgb(255,255,255);
        }
    </style>
{% endblock %}

{% block bodycontent %}
    <div class="container bodys">
        {#蓝图名.要跳转到的页面的路由名#}
        <form action="{{ url_for('blog.publish') }}" method="post">
          <div class="form-group">
            <label for="exampleInputtitle">标题</label>
              {# required 是必须填写的 #}
            <input type="text" name="title" class="form-control" id="exampleInputtitle" placeholder="请输入文章标题：" required>
          </div>
          <div class="form-group">
            <label for="exampleInputcontent">内容</label>
            <textarea class="form-control" name="content" cols="30" rows="10"></textarea>
          </div>

          <button type="submit" id="resbtn" class="btn btn-success">发表博客</button>
        </form>
    </div>
{% endblock %}